wayland: Don't "probe" for a Wayland compositor if started from compositor
authorRob Bradford <rob@linux.intel.com>
Fri, 12 Apr 2013 17:39:20 +0000 (18:39 +0100)
committerRob Bradford <rob@linux.intel.com>
Fri, 12 Apr 2013 17:43:36 +0000 (18:43 +0100)
commitbff5b2ae3ee51e83564ead19f410be9ff0c00326
tree3f3a1b7a5eaeb920ddbc742edffa9bb0f48a9f2e
parentb0121ed0a15743bc518d5d3e02beb4fadd43cc09
wayland: Don't "probe" for a Wayland compositor if started from compositor

In the case that the client is started directly by the compositor the
WAYLAND_SOCKET environment variable is set containing the fd to use that was
created by a socketpair.

This environment variable is consumed by a call to wl_display_connect so a
second call will not take advantage of it.

https://bugzilla.gnome.org/show_bug.cgi?id=697673
gdk/wayland/gdkdisplaymanager-wayland.c